﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace for7raid.vkConnector
{
    public static partial class vkConnector
    {
        public const string RequestServer = @"https://api.vk.com/method/";

        public static string Token { get; private set; }
        public static int ApplicationId { get; set; }
        public static int Permission { get;  set; }

        public static void Login()
        {
            Token = LoginWindow.Login(ApplicationId, Permission);
        }

        public static void Login(int AppId, int Perm)
        {
            ApplicationId = AppId;
            Permission = Perm;
            Token = LoginWindow.Login(ApplicationId, Permission);
        }

    }
}
